//
//  UIButton+GEE_fastInit.h
//  KX11UI
//
//  Created by HYC on 2021/3/1.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (HYC_Tools)

/// 链式语法--frame
- (UIButton *(^)(CGRect T)) H_frame;

/// 链式语法--添加self
- (UIButton *(^)(UIView * T)) H_addSubViewFoSuper;

/// 链式语法--text , 默认button状态UIControlStateNormal
- (UIButton *(^)(NSString * T)) H_text;

/// 链式语法添加text 附赠添加状态
/// - Parameter state: UIControlState
- (UIButton *(^)(NSString * T)) H_text_State:(UIControlState)state;

/// 链式语法--font
- (UIButton *(^)(UIFont *T)) H_Font;

/// 链式语法--textColor
- (UIButton *(^)(UIColor * T)) H_textColor;

/// 链式语法--backgroundColor
- (UIButton *(^)(UIColor * T)) H_backgroundColor;

//方法废弃 建议使用 H_textColor(@"333333".color)
//- (UIButton *(^)(NSString * T)) H_textColorStr;

/// 链式语法--添加图片
- (UIButton *(^)(UIImage * T)) H_Image;

/// 链式语法--选中状态文字颜色
- (UIButton *(^)(UIColor * T)) H_sele_tColor;

/// 链式语法--选中状态文字
- (UIButton *(^)(NSString * T)) H_sele_text;

/// 链式语法--选中状态图片
- (UIButton *(^)(UIImage * T)) H_sele_Image;



@end

NS_ASSUME_NONNULL_END
